package org.dromara.system.domain.bo;

import org.dromara.system.domain.CmsContainer;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 容器管理业务对象 cms_container
 *
 * @author Lion Li
 * @date 2025-08-29
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = CmsContainer.class, reverseConvertGenerate = false)
public class CmsContainerBo extends BaseEntity {

    /**
     * 主键
     */
    private Long id;

    /**
     * 容器编码
     */
    @NotBlank(message = "容器编码不能为空", groups = { AddGroup.class, EditGroup.class })
    private String containerCode;

    /**
     * 容器名称
     */
    @NotBlank(message = "容器名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String containerName;

    /**
     * 类型
     */
    @NotBlank(message = "类型不能为空", groups = { AddGroup.class, EditGroup.class })
    private String type;

    /**
     * 状态
     */
    @NotBlank(message = "状态不能为空", groups = { AddGroup.class, EditGroup.class })
    private String status;

    /**
     * 尺寸
     */
    @NotNull(message = "尺寸不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long size;

    /**
     * RFID
     */
    @NotBlank(message = "RFID不能为空", groups = { AddGroup.class, EditGroup.class })
    private String rfid;


}
